package com.ruoyi.merchant.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单对象 orders
 * 
 * @author ruoyi
 * @date 2025-10-22
 */
public class Orders extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单ID */
    @Excel(name = "订单ID")
    private String orderId;

    /** 订单号 */
    @Excel(name = "订单号")
    private String orderNo;

    /** 用户ID */
    @Excel(name = "用户ID")
    private String customerId;

    /** 商家ID */
    @Excel(name = "商家ID")
    private String merchantId;

    /** 区域ID */
    @Excel(name = "区域ID")
    private String regionId;

    /** 取餐码 */
    @Excel(name = "取餐码")
    private String pickupCode;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private Long status;

    /** 商品总额 */
    @Excel(name = "商品总额")
    private BigDecimal totalAmount;

    /** 优惠金额 */
    @Excel(name = "优惠金额")
    private BigDecimal discountAmount;

    /** 区域补贴 */
    @Excel(name = "区域补贴")
    private BigDecimal regionSubsidy;

    /** 实付金额 */
    @Excel(name = "实付金额")
    private BigDecimal finalAmount;

    /** 支付方式 */
    @Excel(name = "支付方式")
    private Long paymentMethod;

    /** 支付状态 */
    @Excel(name = "支付状态")
    private Long paymentStatus;

    /** 地址快照 */
    @Excel(name = "地址快照")
    private String addressSnapshot;

    /** 预计完成分钟 */
    @Excel(name = "预计完成分钟")
    private String estimatedReadyMin;

    /** 支付时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date paidAt;

    /** 完成时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "完成时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date finishedAt;

    /** 取消时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "取消时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date canceledAt;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    /** 删除时间（软删除） */
    @Excel(name = "删除时间", readConverterExp = "软=删除")
    private Date deletedAt;

    /** 预留字段1 */
    @Excel(name = "预留字段1")
    private String externField1;

    /** 预留字段2 */
    @Excel(name = "预留字段2")
    private String externField2;

    public void setOrderId(String orderId) 
    {
        this.orderId = orderId;
    }

    public String getOrderId() 
    {
        return orderId;
    }

    public void setOrderNo(String orderNo) 
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo() 
    {
        return orderNo;
    }

    public void setCustomerId(String customerId) 
    {
        this.customerId = customerId;
    }

    public String getCustomerId() 
    {
        return customerId;
    }

    public void setMerchantId(String merchantId) 
    {
        this.merchantId = merchantId;
    }

    public String getMerchantId() 
    {
        return merchantId;
    }

    public void setRegionId(String regionId) 
    {
        this.regionId = regionId;
    }

    public String getRegionId() 
    {
        return regionId;
    }

    public void setPickupCode(String pickupCode) 
    {
        this.pickupCode = pickupCode;
    }

    public String getPickupCode() 
    {
        return pickupCode;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    public void setTotalAmount(BigDecimal totalAmount) 
    {
        this.totalAmount = totalAmount;
    }

    public BigDecimal getTotalAmount() 
    {
        return totalAmount;
    }

    public void setDiscountAmount(BigDecimal discountAmount) 
    {
        this.discountAmount = discountAmount;
    }

    public BigDecimal getDiscountAmount() 
    {
        return discountAmount;
    }

    public void setRegionSubsidy(BigDecimal regionSubsidy) 
    {
        this.regionSubsidy = regionSubsidy;
    }

    public BigDecimal getRegionSubsidy() 
    {
        return regionSubsidy;
    }

    public void setFinalAmount(BigDecimal finalAmount) 
    {
        this.finalAmount = finalAmount;
    }

    public BigDecimal getFinalAmount() 
    {
        return finalAmount;
    }

    public void setPaymentMethod(Long paymentMethod) 
    {
        this.paymentMethod = paymentMethod;
    }

    public Long getPaymentMethod() 
    {
        return paymentMethod;
    }

    public void setPaymentStatus(Long paymentStatus) 
    {
        this.paymentStatus = paymentStatus;
    }

    public Long getPaymentStatus() 
    {
        return paymentStatus;
    }

    public void setAddressSnapshot(String addressSnapshot) 
    {
        this.addressSnapshot = addressSnapshot;
    }

    public String getAddressSnapshot() 
    {
        return addressSnapshot;
    }

    public void setEstimatedReadyMin(String estimatedReadyMin) 
    {
        this.estimatedReadyMin = estimatedReadyMin;
    }

    public String getEstimatedReadyMin() 
    {
        return estimatedReadyMin;
    }

    public void setPaidAt(Date paidAt) 
    {
        this.paidAt = paidAt;
    }

    public Date getPaidAt() 
    {
        return paidAt;
    }

    public void setFinishedAt(Date finishedAt) 
    {
        this.finishedAt = finishedAt;
    }

    public Date getFinishedAt() 
    {
        return finishedAt;
    }

    public void setCanceledAt(Date canceledAt) 
    {
        this.canceledAt = canceledAt;
    }

    public Date getCanceledAt() 
    {
        return canceledAt;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    public void setDeletedAt(Date deletedAt) 
    {
        this.deletedAt = deletedAt;
    }

    public Date getDeletedAt() 
    {
        return deletedAt;
    }

    public void setExternField1(String externField1) 
    {
        this.externField1 = externField1;
    }

    public String getExternField1() 
    {
        return externField1;
    }

    public void setExternField2(String externField2) 
    {
        this.externField2 = externField2;
    }

    public String getExternField2() 
    {
        return externField2;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderId", getOrderId())
            .append("orderNo", getOrderNo())
            .append("customerId", getCustomerId())
            .append("merchantId", getMerchantId())
            .append("regionId", getRegionId())
            .append("pickupCode", getPickupCode())
            .append("status", getStatus())
            .append("totalAmount", getTotalAmount())
            .append("discountAmount", getDiscountAmount())
            .append("regionSubsidy", getRegionSubsidy())
            .append("finalAmount", getFinalAmount())
            .append("paymentMethod", getPaymentMethod())
            .append("paymentStatus", getPaymentStatus())
            .append("addressSnapshot", getAddressSnapshot())
            .append("remark", getRemark())
            .append("estimatedReadyMin", getEstimatedReadyMin())
            .append("paidAt", getPaidAt())
            .append("finishedAt", getFinishedAt())
            .append("canceledAt", getCanceledAt())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .append("deletedAt", getDeletedAt())
            .append("externField1", getExternField1())
            .append("externField2", getExternField2())
            .toString();
    }
}
